﻿using LDM.Sys.ServiceAPI.Model.DBModel;
using Microsoft.Extensions.DependencyInjection;
using Utility.Domains.Repositories;

namespace LDM.Sys.Repository.Interfaces
{
    public interface ISysUserRoleRelRepository :IBaseRepository<SysUserRoleRel>, IScoped
    {
        /// <summary>
        /// 获取用户角色
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public List<SysUserRoleRel> GetUserRoles(int userId);

        /// <summary>
        /// 获取角色用户
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public List<SysUserRoleRel> GetRoleUsers(int roleId);

        /// <summary>
        /// 获取角色用户
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public List<SysUserRoleRel> GetRoleUsers(List<int> roleIds);
    }
}
